package com.study.seckill.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.study.seckill.entity.CourseSeckill;
import com.study.seckill.vo.CourseSeckillDetailVO;

import java.util.List;

/**
 * @ClassName: CourseSeckillService
 * @Author: wYin
 * @Date: 2022/3/10 14:40
 */
public interface CourseSeckillService extends IService<CourseSeckill> {
    /**
     * @Desc: 展示符合条件的可秒杀列表
     * @Param: []
     * @Return: java.util.List<com.com.study.seckill.entity.CourseSeckill>
     * @Author: wYin
     * @Time: 2022/3/10 14:54
     */
    public List<CourseSeckill> showCourseSeckill();

    public String  add(CourseSeckill courseSeckill);

    /**
     * @Desc: 需要传入商品的id以及购买的数量
     * @Param: [courseSeckill]
     * @Return: boolean
     * @Author: wYin
     * @Time: 2022/3/14 9:45
     */
    public boolean updateSeckillStock(CourseSeckill courseSeckill);

    public CourseSeckillDetailVO getSeckillInfoById(Integer id);
}
